//
//  AFNetResponse.h
//  YLNetworkingFrameworks
//
//  Created by Topsun on 16/6/1.
//  Copyright © 2016年 tcl. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef NS_ENUM(NSInteger , NetResponseFromType)
{
    eNetResponseFromNetWork,      // 来源网络
    eNetResponseFromCache,        // 缓存
    eNetResponseFromDisk          // 磁盘
};

@interface AFNetResponse : NSObject

@property(nonatomic , readonly)NSDictionary    * responseDicitionary;
@property(nonatomic , readonly)NSString  * serializeJsonString;
@property(nonatomic , assign)NetResponseFromType netResponseFromType;
@property(nonatomic , readonly)id  resultData;
@property(nonatomic , readonly)NSString * resultDes;
@property(nonatomic , readonly)BOOL resultCode;

- (id)initWithJson:(NSString*)jsonString;

@end
